import http from "@/api";
import qs from "qs";
//获取公告管理列表
export const getAnnouncementManagementList = (params: any) => {
    console.log(params);
    return http.post("/pages/affiche!find.action?afficheQueryDto.companyNo=1",qs.stringify({
        _search: false,
        page: params.pageNum,
        rows: params.pageSize,
        sidx: "affId",
        sord: "desc",
        "afficheQueryDto.affTitle": params["afficheQueryDto.affTitle"],
        "afficheQueryDto.affStart": params["afficheQueryDto.affStart"],
        "afficheQueryDto.affEnd": params["afficheQueryDto.affEnd"]
        })
    )
}
//新增公告
export const addAnnouncement=(parmas)=>{
    return http.post("/pages/affiche!saveAffice.action",qs.stringify(parmas))
}
//编辑公告
export const editAnnouncement=(params)=>{
    return http.post("/pages/affiche!update.action",qs.stringify(params));
}
//删除公告
export const deleteAnnouncemen=params=>{
    return http.post("/pages/affiche!delete.action",params);
}